<template>
  <div class="v-container">
    <p>
      视频播放页
    </p>
  </div>
</template>

<script>
import { pageMixin } from '@/utils/mixin'
import { encryptFor163Weapi } from '@/utils/crypto'

export default {
  mixins: [pageMixin],
  validate ({ params, query }) {
    const _nuxt = !!query.id
    return _nuxt
  },
  head () {
    return {
      title: 'smusic video ' + this.headName,
      meta: [
        { hid: 'description', name: 'smusic', content: 'smuic video ' + this.headDescription }
      ]
    }
  },
  data () {
    return {
      headName: '精彩短视频',
      headDescription: '看好玩的视频'
    }
  },
  asyncData ({ ctx, params, query }) {
    const id = query.id
    // 获取视频的详情
    // 获取视频的播放地址
    // 由于 短视频 类的播放地址 加了防盗链 拿了地址 也没办法播放,不会破解
    // encryptFor163Weapi({参数})
    return {
      id
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
